export default [
  {
    path: 'asset/warehous/warehous0/:classify',
    name: '入库单1',
    props: true,
    component: () => import('@/module/asset/warehous/WarehousView'),
    meta: {
      title: '入库单'
    }
  },
  {
    path: 'asset/warehous/warehous1/:classify',
    name: '冲销单1',
    component: () => import('@/module/asset/warehous/WarehousSellView'),
    meta: {
      title: '冲销单'
    }
  },
  {
    path: 'asset/warehous/warehousForm/:id',
    name: '入库单',
    props(route) {
      return { ...route.query, ...route.params }
    },
    component: () => import('@/module/asset/warehous/WarehousForm'),
    meta: {
      title: '入库单'
    }
  },
  {
    path: 'asset/warehous/warehousSellForm/:id',
    name: '冲销单',
    props(route) {
      return { ...route.query, ...route.params }
    },
    component: () => import('@/module/asset/warehous/warehousSellForm'),
    meta: {
      title: '冲销单'
    }
  },
  {
    path: 'asset/receive/receiveForm/:id',
    name: '资产领用',
    props(route) {
      return { ...route.query, ...route.params }
    },
    component: () => import('@/module/asset/receive/receiveForm'),
    meta: {
      title: '资产领用'
    }
  },
  {
    path: 'asset/receive/withdrawalForm/:id',
    name: '资产退库',
    props(route) {
      return { ...route.query, ...route.params }
    },
    component: () => import('@/module/asset/receive/withdrawalForm'),
    meta: {
      title: '资产退库'
    }
  },
  {
    path: 'asset/purchaseApply/purchaseApplyForm/:id',
    name: '采购申请审批',
    props(route) {
      return { ...route.query, ...route.params }
    },
    component: () => import('@/module/asset/purchaseApply/PurchaseApplyForm'),
    meta: {
      title: '采购申请审批'
    }
  },
  {
    path: 'asset/purchaseorder/purchaseorderForm/:id',
    name: '采购订单审批',
    props(route) {
      return { ...route.query, ...route.params }
    },
    component: () => import('@/module/asset/purchaseorder/purchaseorderForm'),
    meta: {
      title: '采购订单审批'
    }
  },
  {
    path: 'asset/assetac/AssetAcForm/:id',
    name: '验收单',
    props(route) {
      return { ...route.query, ...route.params }
    },
    component: () => import('@/module/asset/assetac/AssetAcForm'),
    meta: {
      title: '验收单'
    }
  },
  {
    path: 'asset/borrow/borrowForm/:id',
    name: '借用单',
    props(route) {
      return { ...route.query, ...route.params }
    },
    component: () => import('@/module/asset/borrow/borrowForm'),
    meta: {
      title: '借用单'
    }
  },
  {
    path: '/leave/leaveForm/:id',
    component: () => import('@/module/leave/leaveForm'),
    name: '请假流程审批',
    props(route) {
      return { ...route.query, ...route.params }
    },
    meta: {
      title: '请假流程审批'
    }
  },
  {
    path: '/leave/leaveFormRead/form/:taskId/:processInstanceId/:businessKey/:modelKey',
    component: () => import('@/module/leave/leaveFormRead'),
    name: '请假流程审批已办',
    props: true,
    meta: {
      title: '请假流程审批已办'
    }
  }
]
